import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/rb-service/service/all/oemprofit/pos_profit/listStream',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

export const getListCount = (params) => {
  return request({
    url: '/api/rb-service/service/all/oemprofit/pos_profit/statisticsStream',
    method: 'get',
    params: {
      ...params
    }
  })
}

/* 服务商分润流水 导出 */
export const getExport = (params) => {
  return request({
    // headers: {
    //   "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
    // },
    // responseType: 'blob',
    url: '/api/rb-service/service/all/oemprofit/pos_profit/exportStream',
    method: 'get',
    params: {
      ...params
    }
  })
}